home *** CD-ROM | disk | FTP | other *** search
- // examp701.cpp - link with binder.obj
-
- #include "binder.hpp"
-
- Binder& clear(Binder& b)
- {
- if (b.Flags(BDR_DDELETE))
- b.allDel();
- else
- b.allRmv();
- return b;
- }
-
- char *v[] = {"line one ", "line two ", 0 };
-
-
- main()
- {
- Binder b ((voiDV) v);
- b << clear;
- b.atIns(0,"only line");
- while (++b)
- cout << (char *) b.get() << "\n";
- return 0;
- }
-